{% extends "../topic/inc/topic_base.html" %}
{% block head %}
    <title>{{title}}-{{_web.sitename}}</title>
    <meta name="keywords" content="{{_web.keywords}}">
    <meta name="description" content="{{_web.description}}">
    {{ super() }}
    <link rel="stylesheet" type="text/css" href="{{_web.url}}{{theme_url}}/vendors/wangeditor/css/wangEditor.min.css">
{% endblock %}

{% block content %}
    <div class="article" id="topicList">
       <div class="topnews" id="createtop">
         <div class="header">
              <ol class="breadcrumb">
                <li><a href="/">主页</a><span class="divider"></span></li>
                <li class="active">发布话题</li>
              </ol>
         </div>
         <div class="createbody">
             <div class="row-item">
               <span>选择板块：</span>
               <select name="tab" class="select form-control" id="tab-value">
                    <option value="">请选择</option>
                    {% for item in itemList%}
                      <option value="{{item.name}}">{{item.comment}}</option>
                    {%endfor%}
                </select>
              </div>
              <input type="hidden" id="uname" value="{{uinfo.name}}">
              <input type="hidden" id="upic" value="{{upic}}">
             <div class="row-item"><input type="text"  class="form-control" placeholder="标题字数10字以上" id="topicTitle"></div>
             <div id="editor" style="height:400px;max-height:500px;margin:15px 0;"></div>
             <span class="span-success" id="savetopic">提交</span>
         </div>
       </div>
    </div>
{% endblock %}
{% block footer_other %}
    <script type="text/javascript" src="{{_web.url}}{{theme_url}}/vendors/wangeditor/js/wangEditor.min.js"></script>
    <script type="text/javascript" src="{{_web.url}}{{theme_url}}/src/js/business/topic/create.js"></script>
{% endblock %}
